<?php if(isset($this->error) && $this->error) {?>
<div class="span-6 last" style="margin: 1em auto 1em 1em">
<?php echo $this->form; ?>
</div>
<?php } else { ?>
<?php echo $this->form; ?>
<?php }?>